 <!DOCTYPE html>
 <html lang="en">
 <head>
     <meta charset="UTF-8">
     <title>Document</title>
     <script>
      for (var x = 1; x < 20; x++)
              {
                 for (var y = 1; y < 33; y++)
                 {
                     var z = 100 - x - y;
                      if ((z % 3 == 0) && (x * 5 + y * 3 + z / 3 == 100))
                     {
                         console.log("公鸡:{0}只，母鸡:{1}只,小鸡:{2}只", x, y, z);
                     }
                 }
             }
           
     </script>
 </head>
 <body>
     
 </body>
 </html>